package dao;

import java.util.LinkedHashMap;

import entity.Troop;
import entity.map.Map;

class EntityProvider {

	private LinkedHashMap<String, Troop> hashTroop;
	private LinkedHashMap<String, Map> hashMap;
	
	public EntityProvider(){
		hashTroop = ContentManager.getXmlReader().readTroop();
		hashMap = ContentManager.getXmlReader().readMap();
	}
	
	public Troop getTroop(String resource){
		return hashTroop.get(resource);
	}
	public Map getMap(String resource){
		return hashMap.get(resource);
	}
}
